<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="{:$type == 'month'?'active':''}"><a href="{:url('report/winReport',['type'=>'month'])}">月报表</a></li>
        <li class="{:$type == 'week' ?'active':''}"><a href="{:url('report/winReport',['type'=>'week'])}">周报表</a></li>
        <li class="{:$type == 'day' ?'active':''}"><a href="{:url('report/winReport',['type'=>'day'])}">日报表</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('report/winReport',['type'=>$type])}">
        游戏:
        <select class="form-control" name="game_id" style="width: 140px;">
            <option value='0'>全部</option>
            <volist name="game_list" id="vo">
                <option value='{$vo.id}'>{$vo.game_name}</option>
            </volist>
        </select>
        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="{:url('report/winReport')}">清空</a>
    </form>
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th>时间区间</th>
            <th>下注次数</th>
            <th>下注总金币数</th>
            <th>赢次数</th>
            <th>赢金币总数</th>
            <th>输次数</th>
            <th>输金币总数</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="list" item="vo">
            <tr>
                <td>{$vo.times}</td>
                <td>{$vo.count}</td>
                <td>{$vo.sum_bet_gold}</td>
                <td>{$vo.win_count}</td>
                <td>{$vo.win_gold}</td>
                <td>{$vo.lose_count}</td>
                <td>{$vo.lose_gold}</td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$page}</div>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>